Skip to content

feat: fetch calendar events from backend API instead of Google Sheets#169

Merged
jtuluve merged 3 commits into
Developer-Kommunity-24:mainfrom
dionjoshualobo:calendar/fetch-database
Jul 13, 2026
Merged

feat: fetch calendar events from backend API instead of Google Sheets#169
jtuluve merged 3 commits into
Developer-Kommunity-24:mainfrom
dionjoshualobo:calendar/fetch-database

Conversation

@dionjoshualobo

Copy link
Copy Markdown
Contributor

Pull Request

📋 Description

  • Fetch calendar events from backend API
  • Stop reading calendar data from Google Sheets
  • Add support for CALENDAR_API_URL

🔄 Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

🧪 Testing

  • Ran pnpm exec biome check src/lib/get-events.ts
  • Ran pnpm type-check
  • Verified the website loads and fetches calendar data from the backend API
  • Verified a test approved event stored in local Postgres appears on /calendar?date=jul-2026

📝 Additional Notes

  • CALENDAR_API_URL should point to the backend bot events endpoint.
  • Local example: http://localhost:8080/api/events

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for dk24 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4adea65
🔍 Latest deploy log https://app.netlify.com/projects/dk24/deploys/6a4a1d9c317ed40008f55908
😎 Deploy Preview https://deploy-preview-169--dk24.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

👷 Deploy request for dk242 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4adea65

Comment thread src/lib/get-events.ts Outdated
@gaureshpai gaureshpai added the bug Something isn't working label Jul 1, 2026
@dionjoshualobo

Copy link
Copy Markdown
Contributor Author

community-website .env

Remove:
WEBHOOK_URL
WEBHOOK_SECRET_KEY
CALENDAR_API_URL
GOOGLE_SHEET_ID
GOOGLE_SERVICE_ACCOUNT_EMAIL
GOOGLE_PRIVATE_KEY

Add:

  • BACKEND_URL=— bot's base URL
  • BACKEND_SECRET_KEY=
  • REVALIDATION_SECRET=<any random string, shared with dkbot>

@gaureshpai

Copy link
Copy Markdown
Member

@jtuluve

@jtuluve
jtuluve merged commit 0da498d into Developer-Kommunity-24:main Jul 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants